//导入request.js工具
import request from '@/utils/request.js'

// 注册
export const registerService = (registerData) => {
    return request.post('/user/register', registerData)
}

// 登录
export const loginService = (loginData) => {
    return request.post('/user/login', loginData)
}

// 获取用户基本信息
export const userInfoGetService = () => {
    return request.get('/user/userInfo')
}

// 更新用户基本信息
export const userInfoUpdateService = (userInfoData) => {
    return request.put('/user/update', userInfoData)
}

// 更新用户密码
export const passwordUpdateService = (data) => {
    return request.patch('/user/updatePwd', data)
}
